

import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.io.File;

public class Main {
    public static void main(String[] args) throws Exception{

        JFrame frame = new JFrame();
        frame.setSize(1200,955);
        frame.setLocationRelativeTo(null);                      //窗口置中显示
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);   //关闭窗口时停止程序运行
        frame.setTitle("中国象棋");
        Image Icon = null;

        Icon = ImageIO.read(new File("src/img/r_m.png"));

        frame.setIconImage(Icon);

        MyPanel panel = new MyPanel();
        frame.add(panel);



        frame.setVisible(true);

//        Menu p = new Menu();
//
//        p.clicked();


    }


}
